package com.lbssoft.gpsbd.service.impl;

import com.lbssoft.gpsbd.dao.DeviceTypeMapper;
import com.lbssoft.gpsbd.model.DeviceType;
import com.lbssoft.gpsbd.service.DeviceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by nczc on 2018/3/2.
 */
@Service
public class DeviceTypeServiceImpl implements DeviceTypeService {
    @Autowired
    public DeviceTypeMapper deviceTypeMapper;

    @Override
    public List<DeviceType> list(String where) {
        return deviceTypeMapper.list(where);
    }

    @Override
    public void add(DeviceType type) {
        deviceTypeMapper.add(type);
    }

    @Override
    public void delete(int id) {
        deviceTypeMapper.delete(id);
    }

    @Override
    public void update(DeviceType type) {
        deviceTypeMapper.update(type);
    }

}
